// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_HR_PERSON_POSITION
// * CreateDate    : 2012/1/4 10:06:46
// * Creater       : CodeSmith
// * LastChangeDate: 2012/1/4 10:06:46
// * LastChanger   : 2012/1/4 10:06:46
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
	[Serializable]
	public partial class HrPersonPositionEntity : EntityBase
    {
        public HrPersonPositionTable TableSchema
        {
            get
            {
                return HrPersonPositionTable.Current;
            }
		}
		
		public HrPersonPositionEntity()
        {

        }
		
		public HrPersonPositionEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.PersonId = Convert.ToString(CommonFunctions.ToObject(dr["PERSON_ID"]));
            this.PositionId = Convert.ToString(CommonFunctions.ToObject(dr["POSITION_ID"]));
            this.PositionType = Convert.ToString(CommonFunctions.ToObject(dr["POSITION_TYPE"]));
			this.Supervisor = Convert.ToString(CommonFunctions.ToObject(dr["SUPERVISOR"]));
        }
		
		public HrPersonPositionEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.PersonId = Convert.ToString(CommonFunctions.ToObject(dr["PERSON_ID"]));
            this.PositionId = Convert.ToString(CommonFunctions.ToObject(dr["POSITION_ID"]));
            this.PositionType = Convert.ToString(CommonFunctions.ToObject(dr["POSITION_TYPE"]));
			this.Supervisor = Convert.ToString(CommonFunctions.ToObject(dr["SUPERVISOR"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return HrPersonPositionTable.Current;
            }
        }
		
		#region Perporty List
        public string PersonId
        {
            get { return Convert.ToString(GetData(HrPersonPositionTable.C_PERSON_ID)); }
            set { SetData(HrPersonPositionTable.C_PERSON_ID, value); }
        }
		
        public string PositionId
        {
            get { return Convert.ToString(GetData(HrPersonPositionTable.C_POSITION_ID)); }
            set { SetData(HrPersonPositionTable.C_POSITION_ID, value); }
        }

        public string PositionType
        {
            get { return Convert.ToString(GetData(HrPersonPositionTable.C_POSITION_TYPE)); }
            set { SetData(HrPersonPositionTable.C_POSITION_TYPE, value); }
        }
		
        public string Supervisor
        {
            get { return Convert.ToString(GetData(HrPersonPositionTable.C_SUPERVISOR)); }
            set { SetData(HrPersonPositionTable.C_SUPERVISOR, value); }
        }
		
		#endregion
	}
	
	
}	

